package com.sk.places.places2.service.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="T_PLACES_ON_WAY")
public class PlacesOnWay {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private int id;
	@Column(name="DISTANCE")
	private int distance;
	@Column(name="PLACE_TYPE_ID")
	private int placeTypeId;
	@ManyToOne
	@JoinColumn(name="PLACE_ID")
	private Place place;
	
	
	
	public Place getPlace() {
		return place;
	}
	public void setPlace(Place place) {
		this.place = place;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getDistance() {
		return distance;
	}
	public void setDistance(int distance) {
		this.distance = distance;
	}
	public int getPlaceTypeId() {
		return placeTypeId;
	}
	public void setPlaceTypeId(int placeTypeId) {
		this.placeTypeId = placeTypeId;
	}
	
}
